package com.ruoyi.shop.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 食品表对象 food
 * 
 * @author teio
 * @date 2024-06-04
 */
public class Food extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long fid;
    @Excel(name = "商品名称")
    private String supplierName;
    /** 商品名称 */
    @Excel(name = "商品名称")
    private String food;

    /** 供应商ID */
    @Excel(name = "供应商ID")
    private Long sid;

    /** 商品产地 */
    @Excel(name = "商品产地")
    private String origin;

    /** 销售价格 */
    @Excel(name = "销售价格")
    private BigDecimal price;

    /** 商品库存 */
    @Excel(name = "商品库存")
    private Long stock;

    /** 商品规格 */
    @Excel(name = "商品规格")
    private String specification;

    /** 包装单位 */
    @Excel(name = "包装单位")
    private String unit;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    public void setFid(Long fid) 
    {
        this.fid = fid;
    }

    public Long getFid() 
    {
        return fid;
    }
    public void setFood(String food) 
    {
        this.food = food;
    }

    public String getFood() 
    {
        return food;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }
    public void setStock(Long stock) 
    {
        this.stock = stock;
    }

    public Long getStock() 
    {
        return stock;
    }
    public void setSpecification(String specification) 
    {
        this.specification = specification;
    }

    public String getSpecification() 
    {
        return specification;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("fid", getFid())
            .append("food", getFood())
            .append("sid", getSid())
            .append("origin", getOrigin())
            .append("price", getPrice())
            .append("stock", getStock())
            .append("specification", getSpecification())
            .append("unit", getUnit())
            .append("status", getStatus())
            .append("supplierName", getSupplierName())
            .toString();
    }


    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }
}
